<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>活动信息管理</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet" />
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet" />
    <link th:href="@{/css/style.css}" rel="stylesheet" />

    <link th:href="@{/css/plugins/iCheck/custom.css}" rel="stylesheet"/>
    <link th:href="@{/css/plugins/footable/footable.core.css}" rel="stylesheet"/>

</head>

<body>

<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation" th:include="nav :: navigation"></nav>
    <div id="page-wrapper" class="gray-bg">
        <div class="border-bottom" th:include="header :: headerTop"></div>
        <div class="row wrapper border-bottom white-bg page-heading" th:fragment="headerNav">
            <div class="col-lg-10">
                <h2>活动管理</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="orderManage.html">首页</a>
                    </li>
                    <li class="active">
                        <strong>活动管理</strong>
                    </li>
                </ol>
            </div>
            <div class="col-lg-2">
            </div>
        </div>

        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
					<div class="ibox float-e-margins">
                       <div class="ibox-title">
                           <h5>筛选&amp;查找</h5>
                           <div class="ibox-tools">
                               <a class="collapse-link">
                                   <i class="fa fa-chevron-up"></i>
                               </a>
                           </div>
                       </div>
                      <!--<div class="ibox-content" style="display: block;">
                           <form action="orderManage_0_0_0" class="form-inline">
                               <div class="row">
                                   <div class="form-group">
                                       <label for="startTime">填表日'期范围：</label>
                                       <input type="date" class="form-control" id="startTime" placeholder="开始时间"/>
                                   </div>
                                   <div class="form-group">
                                       <label for="endTime">—</label>
                                       <input type="date" class="form-control" id="endTime" placeholder="结束时间"/>
                                   </div>
                                  <div class="form-group">
                                       <label for="phoneNum">&nbsp;&nbsp;活动ID：</label>
                                       <input id="phoneNum" name="phoneNum" placeholder="手机号码" class="form-control"
                                              type="text" th:value="${activitys.id}"/>
                                   </div>
                                   <div class="form-group">
                                       <label for="userName">&nbsp;&nbsp;活动标题：</label>
                                       <input id="userName" name="userName" placeholder="输入姓名" style="width: 150px" class="form-control"
                                              type="text" th:value="${activitys}"/>
                                   </div>
                                   <div class="form-group">
                                       <select name="paperStatus" id="paperStatus" class="form-control">
                                           <option value="5" th:selected="${activitys==5}" selected>
                                               &#45;&#45;是否需要纸单&#45;&#45;
                                           </option>
                                           <option value="1" th:selected="${order.paperStatus==1}">是</option>
                                           <option value="0" th:selected="${order.paperStatus==0}">否</option>
                                       </select>
                                   </div>
                                   <div class="form-group">
                                       <select name="payStatus" id="payStatus" class="form-control">
                                           <option value="5" th:selected="${order.payStatus==5}" selected>
                                               &#45;&#45;请选择支付状态&#45;&#45;
                                           </option>
                                           <option value="1" th:selected="${order.payStatus==1}">已支付</option>
                                           <option value="0" th:selected="${order.payStatus==0}">未支付</option>
                                       </select>
                                   </div>
                                   <div class="form-group">
                                       <select name="handleStatus" id="handleStatus" class="form-control">
                                           <option value="5" th:selected="${order.handleStatus==1}" selected>
                                               &#45;&#45;请选择处理状态&#45;&#45;
                                           </option>
                                           <option value="1" th:selected="${order.handleStatus==1}">待处理</option>
                                           <option value="2" th:selected="${order.handleStatus==2}">处理中</option>
                                           <option value="3" th:selected="${order.handleStatus==3}">已处理</option>
                                           <option value="4" th:selected="${order.handleStatus==4}">已作废</option>
                                       </select>
                                   </div>
                                   <div class="col-sm-offset-4 col-sm-3" style="margin-top: 15px;">
                                       <button class="btn btn-primary btn-block" type="submit"><i
                                               class="fa fa-search"></i>&nbsp;&nbsp;&nbsp;&nbsp;<strong>筛选</strong>
                                       </button>
                                   </div>
                               </div>
                           </form>
                       </div>-->
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>活动列表</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <div class="table-responsive">
                                <table class=" table table-bordered table-hover" data-page-size="10">
                                    <thead>
                                    <tr style="text-align: center;justify-content:center">
										<th style="width:10%;text-align: center;justify-content:center" >活动ID </th>
										<th style="width:20%;text-align: center;justify-content:center">活动标题</th>
										<th style="width:20%;text-align: center;justify-content:center">活动描述</th>
										<th style="width:10%;text-align: center;justify-content:center">活动保险</th>
										<th style="width:10%;text-align: center;justify-content:center">其他服务</th>
										<th style="width:10%;text-align: center;justify-content:center">审核情况</th>
                                        <th style="width:10%;text-align: center;justify-content:center">查看详细</th>
                                        <th style="width:10%;text-align: center;justify-content:center">审核处理</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="ac:${activitys}" style= " text-align: center;justify-content:center">
                                        <td th:text="${ac.id}">Onions</td>
                                        <td th:text="${ac.title}">Onions</td>
                                        <td th:text="${ac.descrip}">Onions</td>
                                        <td th:text="${ac.insure}?'是':'否'">Onions</td>
                                        <td th:text="${ac.otherService}?'是':'否'">Onions</td>
                                        <td th:text="${ac.examine}?'审核已通过':'等待审核'">Onions</td>
                                       <td>
                                            &nbsp;&nbsp;
                                            <a th:href="@{'./orderDetail?id='+${ac.id}}" title="查看详细"><i
                                                    class="glyphicon glyphicon-search"></i></a>
                                            &nbsp;&nbsp;
                                        </td>
                                        <td>
                                            &nbsp;&nbsp;
                                            <a th:href="@{'./orderHandle?id='+${ac.id}}" title="处理"><i
                                                    class="glyphicon glyphicon-plus"></i></a>
                                            &nbsp;&nbsp;
                                        </td>
                                    </tr>
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td colspan="12">
                                            <ul id="pageHTML" class="pagination pull-right"></ul>
                                        </td>
                                    </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer" th:include="footer :: copyright"></div>
    </div>
</div>

&lt;!&ndash; Mainly scripts &ndash;&gt;
<script th:src="@{/js/jquery-2.1.1.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
<script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>

&lt;!&ndash; Peity &ndash;&gt;
<script th:src="@{/js/plugins/peity/jquery.peity.min.js}"></script>

&lt;!&ndash; Custom and plugin javascript &ndash;&gt;
<script th:src="@{/js/inspinia.js}"></script>
<script th:src="@{/js/plugins/pace/pace.min.js}"></script>

&lt;!&ndash; iCheck &ndash;&gt;
<script th:src="@{/js/plugins/iCheck/icheck.min.js}"></script>

&lt;!&ndash; Peity &ndash;&gt;
<script th:src="@{/js/demo/peity-demo.js}"></script>

&lt;!&ndash; FooTable &ndash;&gt;
<script th:src="@{/js/plugins/footable/footable.all.min.js}"></script>

&lt;!&ndash; common &ndash;&gt;
<script th:src="@{/js/common.js}"></script>

<script th:inline="javascript">
    var pageHTML = [[${pageHTML}]];
    $(document).ready(function () {
        $("#pageHTML").html(pageHTML);
    });
</script>

</body>
</html>

